﻿
using BCCommon;
using BCCommon.Enums;
using BCData.TMS.OrderTranstionRecord;
using BCDto.TMS.OrderTranstionRecord;
using BCEntity.TMS.OrderTranstionRecord;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.TMS.OrderTranstionRecord
{
	/// <summary>
	/// 订单流转记录
	/// </summary>
	public interface IOrderTranstionRecordService
	{
		#region  成员方法
		/// <summary>
		/// 是否存在此记录
		/// </summary>
		/// <param name="orderTranstionRecordId">订单流转记录Id</param>
		bool Exists(long orderTranstionRecordId);
		/// <summary>
		/// 添加订单流转记录
		/// </summary>
		/// <param name="requestDto">订单流转记录信息</param>
		OrderTranstionRecordDto Add(OrderTranstionRecordRequestDto requestDto);
		/// <summary>
		/// 更新订单流转记录
		/// </summary>
		/// <param name="putDto">订单流转记录信息</param>
		OrderTranstionRecordDto Update(OrderTranstionRecordPutDto putDto);
		/// <summary>
		/// 删除订单流转记录
		/// </summary>
		/// <param name="orderTranstionRecordId">订单流转记录Id</param>
		bool Delete(long orderTranstionRecordId);
		/// <summary>
		/// 获取订单流转记录
		/// </summary>
		/// <param name="orderTranstionRecordId">订单流转记录Id</param>
		OrderTranstionRecordDto Get(long orderTranstionRecordId);
		/// <summary>
		/// 获取订单流转记录
		/// </summary>
		/// <param name="orderId">订单Id</param>
		OrderTranstionRecordDto GetProcessing(long orderId);
		/// <summary>
		/// 获取订单流转记录列表
		/// </summary>
		/// <param name="orderId">订单Id</param>
		IEnumerable<OrderTranstionRecordDto> GetList(long orderId);
		/// <summary>
		/// 获取订单流转记录列表
		/// </summary>
		/// <param name="orderNo">订单编号</param>
		IEnumerable<OrderTranstionRecordDto> GetList(string orderNo);
		/// <summary>
		/// 获取订单流转记录分页列表
		/// </summary>
		/// <param name="start">开始时间</param>
		/// <param name="end">结束时间</param>
		/// <param name="sortName">排序字段</param>
		/// <param name="ascending">升序</param>
		/// <param name="pageIndex">当前页码</param>
		/// <param name="pageSize">订单流转记录每页数据条数</param>
		PageableList<OrderTranstionRecordDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
		#endregion  成员方法
	}
}